
        <div class="form-add">
        	<?php admin_msg( $msg ); ?>
        	<script type="text/javascript" src="<?php echo admin_editor_path(); ?>tiny_mce.js"></script>
			<script type="text/javascript" src="<?php echo admin_js(); ?>editor.js"></script>
    		<form name="myform" action="<?php echo admin_link( 'product/edit/'.$row['id'] ) ?>" method="post">
    			<input name="hid" value="<?php echo $row['id'] ?>" type="hidden" />
            	<table width="100%">
            		<tr>
                        <td width="120">Tên sản phẩm</td>
                        <td><input type="text" name="name" value="<?php echo $row['name'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<tr>
                        <td>Giá theo VND</td>
                        <td><input type="text" name="vnd" value="<?php echo $row['vnd'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<tr>
                        <td>Giá theo USD</td>
                        <td><input type="text" name="usd" value="<?php echo $row['usd'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<tr>
                        <td colspan="2" class="h4">Sản phẩm liên quan</td>
                    </tr>
                    <tr>
                        <td width="120">Tag</td>
                        <td>
                        	<input type="text" name="tags" value="<?php echo $row['tags'] ?>" maxlength="255" class="text" />
                        	<p class="text-desc">Ví dụ : Nokia, Samsung ... </p>
                        </td>
            		</tr>
            		<tr>
                        <td colspan="2" class="h4">Từ khóa và mô tả</td>
                    </tr>
                    <tr>
                        <td>Từ khóa</td>
                        <td><input type="text" name="seo_keywords" value="<?php echo $row['seo_keywords'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<tr>
                        <td>Mô tả</td>
                        <td><input type="text" name="seo_description" value="<?php echo $row['seo_description'] ?>" maxlength="255" class="text" /></td>
            		</tr>            		
            		<tr>
                        <td colspan="2" class="h4">Chủ đề</td>
                    </tr>
            		<tr>
                    	<td>Chọn chủ đề</td>
                        <td>
                        	<?php admin_cat_combo( $menu_cat, $row['cat_id'], 10 ); ?>
                        </td>
                    </tr>
                    <?php admin_box_img( $row['image'], $row['image_text'] ) ;?> 
            		<tr>
                        <td colspan="2" class="h4">Tùy chọn</td>
                    </tr>
                    <tr>
                        <td>Hiển thị</td>
                        <td>
                            <p>
                                <input <?php if ( $row['status'] == 1 ) echo 'checked="checked"'; ?> type="radio" name="status" value="1" /> <span>Có</span>
                                <input <?php if ( $row['status'] == 0 ) echo 'checked="checked"'; ?> type="radio" name="status" value="0" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>Tin mới</td>
                        <td>
                            <p>
                                <input <?php if ( $row['new'] == 1 ) echo 'checked="checked"'; ?> type="radio" name="new" value="1" /> <span>Có</span>
                                <input <?php if ( $row['new'] == 0 ) echo 'checked="checked"'; ?> type="radio" name="new" value="0" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>Tin tiêu biểu</td>
                        <td>
                            <p>
                                <input <?php if ( $row['focus'] == 1 ) echo 'checked="checked"'; ?> type="radio" name="focus" value="1" /> <span>Có</span>
                                <input <?php if ( $row['focus'] == 0 ) echo 'checked="checked"'; ?> type="radio" name="focus" value="0" /> <span>Không</span>
                            </p>
                        </td>
                    </tr>
                    <tr>
                        <td>Hiển thị trang chủ</td>
                        <td>
                            <p>
                                <input <?php if ( $row['home'] == 1 ) echo 'checked="checked"'; ?> type="radio" name="home" value="1" /> <span>Có</span>
                                <input <?php if ( $row['home'] == 0 ) echo 'checked="checked"'; ?> type="radio" name="home" value="0" /> <span>Không</span>
                            </p>
                        </td>
                    </tr> 
                    <tr>
                        <td colspan="2" class="h4">Giới thiệu sản phẩm</td>
                    </tr>
                    <tr>
                		<td>Mô tả ngắn</td>
                		<td><textarea name="description" class="text textarea" cols="10" rows="10"><?php echo $row['description'] ?></textarea></td>
            		</tr> 
                    <tr>
                        <td colspan="2" class="h4">Chi tiết sản phẩm</td>
                    </tr>
                    <tr>
                		<td>Mô tả</td>
                		<td><textarea name="detail" id="detail" class="text textarea" cols="10" rows="10"><?php echo $row['detail'] ?></textarea></td>
            		</tr> 
            		<tr>
                		<td>Đặc tính kỹ thuật</td>
                		<td><textarea name="technical" id="detail1" class="text textarea" cols="10" rows="10"><?php echo $row['technical'] ?></textarea></td>
            		</tr>   
            		<tr>
                		<td>Phụ kiện</td>
                		<td><textarea name="attachment" id="detail2" class="text textarea" cols="10" rows="10"><?php echo $row['attachment'] ?></textarea></td>
            		</tr>   
            		<?php if ( $row['field_name_1'] ) { ?>
                    <tr>
                        <td colspan="2" class="h4">Trường sản phẩm</td>
                    </tr>
            		<tr>
                        <td><?php echo $row['field_name_1'] ?></td>
                        <td><input type="text" name="field_1" value="<?php echo $row['field_1'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>
            		<?php if ( $row['field_name_2'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_2'] ?></td>
                        <td><input type="text" name="field_2" value="<?php echo $row['field_2'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>  
            		<?php if ( $row['field_name_3'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_3'] ?></td>
                        <td><input type="text" name="field_3" value="<?php echo $row['field_3'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>
            		<?php if ( $row['field_name_4'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_4'] ?></td>
                        <td><input type="text" name="field_4" value="<?php echo $row['field_4'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>
            		<?php if ( $row['field_name_5'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_5'] ?></td>
                        <td><input type="text" name="field_5" value="<?php echo $row['field_5'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>
            		<?php if ( $row['field_name_6'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_6'] ?></td>
                        <td><input type="text" name="field_6" value="<?php echo $row['field_6'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>
            		<?php if ( $row['field_name_7'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_7'] ?></td>
                        <td><input type="text" name="field_7" value="<?php echo $row['field_7'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>
            		<?php if ( $row['field_name_8'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_8'] ?></td>
                        <td><input type="text" name="field_8" value="<?php echo $row['field_8'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>
            		<?php if ( $row['field_name_9'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_9'] ?></td>
                        <td><input type="text" name="field_9" value="<?php echo $row['field_9'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>
            		<?php if ( $row['field_name_10'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_10'] ?></td>
                        <td><input type="text" name="field_10" value="<?php echo $row['field_10'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>    
            		
            		<?php if ( $row['field_name_11'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_11'] ?></td>
                        <td><input type="text" name="field_11" value="<?php echo $row['field_11'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?> 
            		<?php if ( $row['field_name_12'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_12'] ?></td>
                        <td><input type="text" name="field_12" value="<?php echo $row['field_12'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?> 
            		<?php if ( $row['field_name_13'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_13'] ?></td>
                        <td><input type="text" name="field_13" value="<?php echo $row['field_13'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?> 
            		<?php if ( $row['field_name_14'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_14'] ?></td>
                        <td><input type="text" name="field_14" value="<?php echo $row['field_14'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?> 
            		<?php if ( $row['field_name_15'] ) { ?>
            		<tr>
                        <td><?php echo $row['field_name_15'] ?></td>
                        <td><input type="text" name="field_15" value="<?php echo $row['field_15'] ?>" maxlength="255" class="text" /></td>
            		</tr>
            		<?php } ?>             		                     		                  
                    <tr>
                        <td></td>
                        <td><input type="submit" name="submit" value="Thay đổi" class="button" /> </td>
                    </tr>
                </table>
                
            </form>
		</div>